# python 文件复制
import os

with open(r'/Users/liangbo/Documents/AndroidLearn/python/copytest/testcopy.mp4', 'rb') as stream:
    container = stream.read()
    with open(r'/Users/liangbo/Documents/AndroidLearn/python/copytest/testcopy01.mp4', 'wb') as wdtream:
        wdtream.write(container)
print('文件复制完成')

# 在某个目录下创建一个新目录，首先把新目录的完整路径表示出来:
os.path.join('/Users/michael', 'testdir')
'/Users/michael/testdir'
# 然后创建一个目录:
os.mkdir('/Users/michael/testdir')
# 删掉一个目录:
os.rmdir('/Users/michael/testdir')
